import request from '@/utils/request'

export function queryGuestTheme() {
  return request({
    url: 'rest/api/config/portal/v1/theme/info/default',
    method: 'get'
  })
}

/**
 * 用户主题
 * @returns {AxiosPromise}
 */
export function queryUserTheme() {
  return request({
    url: 'rest/api/user/portal/v1/theme/info/get',
    method: 'get'
  })
}

/**
 * 用户自定义主题
 * @param params
 * @returns {AxiosPromise}
 */
export function userChecked(params) {
  return request({
    url: 'rest/api/user/portal/v1/theme/info/checked',
    method: 'get',
    params
  })
}
